package com.aaa.service.impl;

import com.aaa.dao.BookMapper;
import com.aaa.entity.Book;
import com.aaa.service.BookServiceDao;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class BookServiceImpl implements BookServiceDao {
    @Resource
    BookMapper bookMapper;

    @Override
    public List<Book> find(Integer pageSize,Integer pageNum) {
        return bookMapper.find(pageSize, pageNum);
    }

    @Override
    public Integer findcount() {
        return bookMapper.findcount();
    }

    @Override
    public int add(Book book) {
        return bookMapper.add(book);
    }

    @Override
    public int update(Book book) {
        return bookMapper.update(book);
    }

    @Override
    public int undercarriage(Integer id) {
        return bookMapper.undercarriage(id);
    }

    @Override
    public List<Book> find1() {
        return bookMapper.find1();
    }


}
